package ${filePackageName};

import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Map;

/**
 * 实体数据信息
 * @author ${projectAuthor}
 * @version 1.0
 * @date ${nowDate}
 */
@ApiModel(value = "实体数据",description="实体数据")
public class EntityData {

    @ApiModelProperty("实体名称")
    private String entityName;

    @ApiModelProperty("实体备注")
    private String entityComment;

    @ApiModelProperty("主键名")
    private String primaryKey;

    @ApiModelProperty("属性")
    private Map<String,Object> entityAttrs;

    @ApiModelProperty("访问地址")
    private String accessBaseUrl;

    public String getEntityName() {
        return entityName;
    }

    public void setEntityName(String entityName) {
        this.entityName = entityName;
    }

    public String getEntityComment() {
        return entityComment;
    }

    public void setEntityComment(String entityComment) {
        this.entityComment = entityComment;
    }

    public String getPrimaryKey() {
        return primaryKey;
    }

    public void setPrimaryKey(String primaryKey) {
        this.primaryKey = primaryKey;
    }

    public Map<String, Object> getEntityAttrs() {
        return entityAttrs;
    }

    public void setEntityAttrs(Map<String, Object> entityAttrs) {
        this.entityAttrs = entityAttrs;
    }

    public String getAccessBaseUrl() {
        return accessBaseUrl;
    }

    public void setAccessBaseUrl(String accessBaseUrl) {
        this.accessBaseUrl = accessBaseUrl;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

}
